#ifndef LISTCALC_H
#define LISTCALC_H

#include <QThread>
#include <QStringListModel>
#include <QFile>
#include <QTextStream>
#include <QCryptographicHash>

class ListCalc : public QThread
{
    Q_OBJECT
public:
    explicit ListCalc(QObject *parent = 0, bool critical = false);
    void run();
    
signals:
    void giveModel(QStringListModel *);
    void giveTPbar(int);
    void giveTPbarVal(int);
    void checkFile(QString);
public slots:
private:
    bool                    _critical;
    QStringList             file_list;
    QString                 CalcSha1(QString Path);
    
};

#endif // LISTCALC_H
